<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml"> 
<head> 
<meta http-equiv="content-type" content="text/html; charset=utf-8"> 
<meta name="google-site-verification" content="{$this->config.google-site-verification}" /> 
<meta name="robots" content="index,follow" /> 
<meta name="keywords" content="{$META_KEYWORDS|default:$this->meta_keywords}" /> 
<meta name="description" content="{$META_DESCRIPTION|default:$this->meta_description}" /> 
<title>{$PAGE_TITLE|default:$this->page_title} | {$this->config.appname}</title> 
<base href="{$smarty.const.URL_BASE_HREF}" /> 
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/eggplant/jquery-ui.css" type="text/css" />
<link rel="stylesheet" href="tpl/screen.css" type="text/css"> 
<link href='http://fonts.googleapis.com/css?family=Arvo:regular,bold&subset=latin' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> 
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.6/jquery-ui.min.js"></script>
<script type="text/javascript" src="site.js"></script>
</head>
<body>
<div id="header">
	<div id="login">
	{if $this->login}
		You have logged in as <u>{$this->login.email}</u> &nbsp;&nbsp;&nbsp;
		<span class="ui-icon ui-icon-person"></span> <a href="index.php?a=logout">Logout</a>
	{else}
		<span class="ui-icon ui-icon-person"></span> Not our member? <a href="index.php?a=signup">Signup</a>.
		<form class="ui-widget">
		{if $this->login_err}<div class="ui-state-error ui-corner-all" style="padding:0.5em"><span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span> <b>Error:</b> {$this->login_err}</div>{/if}
		<input type="hidden" name="a" value="login">
		<input name="e" type="email" placeholder="Email" class="required" autocomplete="on">
		<input name="p" type="password" placeholder="Password" class="required" autocomplete="off">
		<button onclick="check_and_post(this.form)">Login</button> <input type="checkbox" title="Remember me"> Remember me 	
		</form>
	{/if}
	</div>
</div>
<div id="body">
	<div id="side"></div>
	<div id="content">